/*
 * @Author: 凌宇king
 * @Date: 2022-09-06 10:10:57
 * @LastEditTime: 2022-09-20 07:20:44
 */
const mongoose = require('mongoose')
//建立管理员信息表======================================================== 
const adminSchema = new mongoose.Schema({
    openid: String,
    username: String,
    password: String,
    nickName: String,
    role: String,
    time: String
})
const admin = mongoose.model('Admin', adminSchema, 'admin');
/* admin.create({
    openid: 'oz-324k0f5hKZ1X4WDYzXw2Lolso',
    username: 'admin',
    password: 'lsh123456',
    role: '超级管理员',
    nickName: '潘总',
    time: '2022-09-18 10:55:30'
}) */
module.exports = admin 